package junittraining;

import org.junit.After;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

public class TestClass {

    @BeforeClass
    public static void beforeClassMethod() {
        
    }

    @Before
    public void beforeMethod() throws InterruptedException {
        System.setProperty("junit.default.timeout", "0.1");
        int counter = 0;
        while(counter < 100) {
            counter++;
            Thread.sleep(new Long(100));
        }
    }

    @After
    public void afterMethod() {
        
    }

    @Test
    public void testMethod() throws InterruptedException {
        int counter = 0;
        while(counter < 100) {
            counter++;
            Thread.sleep(new Long(100));
        }
    }
}
